package com.techwells.heartfelt.service.basic.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.techwells.heartfelt.dao.basic.VersionDAO;
import com.techwells.heartfelt.dao.entity.basic.Version;
import com.techwells.heartfelt.service.GenericServiceImpl;
import com.techwells.heartfelt.service.basic.VersionService;
import com.techwells.heartfelt.viewobject.basic.VersionViewObject;

/**
 * 版本信息服务实现类
 * 
 * @author 马蹄声
 * @version 1.0
 * 
 */
@Service
public class VersionServiceImpl extends
        GenericServiceImpl<VersionViewObject, Version, VersionServiceImpl>
        implements VersionService {
	
    private VersionDAO versionDAO;
    
    @Autowired
    public VersionServiceImpl(VersionDAO versionDAO) {
        super(versionDAO);
        this.versionDAO = versionDAO;
    }

	@Override
	public List<VersionViewObject> selectAll() {
		return this.transToViewObject(versionDAO.selectAll());
	}
}
